package com.xiu.travel.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.annotation.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;

/**
 * @author 2023
 */

@AllArgsConstructor
public enum SkuStatusEnum implements IEnum<Integer>
{
    /**
     * 上架
     */
    ON_SHELVES(0,"上架"),
    /**
     * 下架
     */
    OFF_SHELVES(1,"下架");
    @EnumValue
    private final Integer code;
    @JsonValue
    private final String status;

    public String getStatus() {
        return status;
    }

    @Override
    public Integer getValue() {
        return code;
    }
}
